import request from '@/utils/request'
import Cookies from 'js-cookie'
// 列表
export function getList(data, page) {
    return request({
        url: '/Muma_record_recharge/record_recharge_detail_list/' + (page ? page : 1),
        method: 'post',
        data: data
    })
}
// 获取分页
export function getPage(data) {
    return request({
        url: '/Muma_record_recharge/record_recharge_detail_page',
        method: 'post',
        data: data
    })
}
export function getBrandList(data) {
    return request({
        url: '/General/get_brand_second',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getStoreList(data) {
    return request({
        url: '/General/get_store',
        method: 'post',
        data: data
    })
}
// 获取门店列表
export function getTypeList(data) {
    return request({
        url: '/Muma_record_recharge/record_tyes',
        method: 'post',
        data: data
    })
}
// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/Muma_record_recharge/record_recharge_detail_excel?store_id=${data.store_id}&begin_time=${data.begin_time}&end_time=${data.end_time}&mobile=${data.mobile}&type=${data.type}&card_no=${data.card_no}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
